#include "runtime/object.h"

Object::Object()
{
    m_uuid = UCore::GenerateUUID();
}

Object::~Object()
{
}

const UCore::uuid_t &Object::getId() const
{
    return m_uuid;
}

uString Object::getClassName() const
{
#ifdef _MSC_VER
    return typeid(*this).name() + 6;
#else

    const char *name = typeid(*this).name();
    while (*name >= '0' && *name <= '9')
        name++;
    return name;

#endif // _MSC_VER
}